<?php include 'connect.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="utf-8"/>
<title>Liên hệ</title>
<link rel="stylesheet" href="Css/cc.css"></link>
 <script src="JS/regjs.js"></script> 
</head>
    <body>
<div class="wrapper">
<?php include 'menu.php';?>
    <div class="bigleft">
<div class="content">
    <div class="regis">
          <?php 
            if(isset($_SESSION['cart']))
            {
                $count = count($_SESSION['cart']);
                ?>
        <div><table border="0" width="100%">
                
                    <?php
                for($i=0;$i<$count;$i++)
                {
                    ?><tr>
                    <td width="20%"><img  style="width: 85px; height: 95px;" src="<?php echo $_SESSION['cart'][$i][5];?>"></img></td>
                    <td width="20%"><?php echo $_SESSION['cart'][$i][1] ?></td><td width="20%"><?php echo "Giá: ".$_SESSION['cart'][$i][2]; ?></td><td width="20%"><?php echo "Số lượng: ".$_SESSION['cart'][$i][3];?></td><td width="20%"><?php echo "Kích cỡ: ".$_SESSION['cart'][$i][4];?></td>
               </tr> <?php }?>
                </table>
        </div>
            <?php }
        ?>
            <div class="contact_body">
        Đặt hàng!<br></br>
        <form name="frmcontact" method="post" onsubmit="return validate_cart()" action="" >
            <div><input type="text" name="txtfullname" placeholder="Họ tên"></input></div>
            <div><input type="text" name="txtemail" placeholder="Email"></input></div>
            <div><input type="text" name="txtphone" placeholder="Điện thoại"></input></div>
            <div><input class="regis_button" type="submit" name="btncontact" value="Đặt hàng" ></input><input class="regis_button" type="reset" value="Nhập lại" ></input></div>
        </form>
        </div>
    <?php
if(isset($_POST['cancel']))
{
    session_start();
    unset($_SESSION['cart']);
    header("location:/Project/end.php");
    ?>
<?php }
?>
</div>
    </div>
</div>
<?php include 'menu_right.php'; ?>
<div class="footer">
We are... Mr.Chuot Tru, Mr.Minh Ho
<hr  width="20%" style="margin-left:40%; margin-top:8px;"/>
<pre><br /><br />
Coppyright: Aitieducation
</pre>
</div>
</div>
</body>
</html>